//
//  TMShareView.m
//  国学商家管理
//
//  Created by Tao Li on 2018/6/21.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMShareView.h"
@implementation TMShareView
- (void)awakeFromNib{
    [super awakeFromNib];
    self.backgroundColor = [UIColor colorWithWhite:0 alpha:0.5];
    self.backView.backgroundColor = [UIColor whiteColor];
}
- (IBAction)weChatShare:(UIButton *)sender {
    if (self.wxBlock) {
        self.wxBlock();
    }
}
- (IBAction)weChatCycleShare:(UIButton *)sender {
    if (self.wxcBlock) {
        self.wxcBlock();
    }
}
- (IBAction)QQShare:(UIButton *)sender {
    if (self.qqBlock) {
        self.qqBlock();
    }
}
- (IBAction)WeiBoShare:(UIButton *)sender {
    if (self.wbBlock) {
        self.wbBlock();
    }
    
}
- (IBAction)shareToQQzone:(UIButton *)sender {
    if (self.qqzoneBlock) {
        self.qqzoneBlock();
    }
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self removeFromSuperview];
}


@end
